﻿using Rbac.Contracts.DTO.InPut;
using Rbac.Contracts.DTO.OutPut;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rbac.Contracts.Interface
{
	/// <summary>
	/// 角色接口
	/// </summary>
	public interface IRoleServer
	{
		/// <summary>
		/// 角色查询
		/// </summary>
		/// <param name="roleName"></param>
		/// <returns></returns>
		List<RoleOutPut> SearchRoles(string roleName);
		/// <summary>
		/// 添加
		/// </summary>
		/// <param name="role"></param>
		/// <returns></returns>
		int Add(RoleInput role);
		/// <summary>
		/// 修改
		/// </summary>
		/// <param name="role"></param>
		/// <returns></returns>
		int Update(RoleInput role);
		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="idList"></param>
		/// <returns></returns>
		int Delete(params int[] idList);
	}
}
